/* sadfasf
sdf
saf
sdf
sdf
sdf
d */
import { CarryOutOutlined, CheckOutlined } from '@ant-design/icons';
import React from 'react';
const playMap = new Map();
const val = (val)=>{
  console.log(val,'dvvvv');
  
return 'h1'
}
playMap.set(val(val), <CheckOutlined />)
export const iconType = (val: any) => {
  console.log(playMap.get('h1'));
  
  return playMap.get(val)? playMap.get(val): '其他状况'
};
// export const iconType = (val: any) => {
//   switch (val) {
//     case 'h1'||'h2':
//       console.log('ininin');
      
//       return <CheckOutlined />;
//       break;

//     default:
//       return <CarryOutOutlined />;
//       break;
//   }
// };
